package com.lct.javabean;

public class Test1 {
    public static void main(String[] args) {
        //实体类有两个作用
        //1.实体类对象本身只负责存取对象的数据
        Student s1 = new Student("lct",'男',178,99);
        System.out.println(s1.getName());
        System.out.println(s1.getHeight());
        System.out.println(s1.getScore());

        //2.实体类对象只负责数据的存和取，对于数据的业务处理应该交给另外一个类的对象来处理
        StudentOperator operator = new StudentOperator(s1);
        operator.printPass();
    }
}
